<script>
	export default {
		onLaunch: function() {			
			if(!this.innerAudioContext){
				this.innerAudioContext = uni.createInnerAudioContext();
			}
			this.innerAudioContext.autoplay = false;
			this.innerAudioContext.loop = true;
			this.innerAudioContext.src =
				'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-4746d102-ac01-49a8-9aeb-17b35d3b4068/4d703038-8111-4e73-82af-aa68a4225156.mp3';
			this.innerAudioContext.onPlay(() => {
				this.$vuex('is_play',true);
			});
			this.innerAudioContext.onPause(() => {
				this.$vuex('is_play',false);
			});
			this.innerAudioContext.onError((res) => {
				console.log(res.errMsg);
				console.log(res.errCode);
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import "colorui/main.css";
	@import "colorui/icon.css";
</style>
